package com.iengine.services.api.command.chat;

import java.util.Map;


/**
 * 聊天命令
 * 
 */
public class CommandChat extends AbstractTxtPhoneApiCommand {

    @Override
    protected Map formatArgs(Map map, Map nlpParams) {
    	boolean flag = isDirectReturn();
    	String value = (String) nlpParams.get("isInLibrary");
    	//value 1为确定聊天，0为不确定聊天
    	if(!"1".equals(value)){
    		flag = false;
    	}
    	map = addValue(map, flag, nlpParams.get("chatAnswer"));
        return map;
    }
}
